package com.qiancheng.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "user_auth")
public class UserAuth {
    @Id
    private String id;

    @Column(name = "user_id")
    private String userId;

    /**
     * 3:phone,2:email,1:uname
     */
    @Column(name = "login_type")
    private Byte loginType;

    private String openid;

    @Column(name = "login_token")
    private String loginToken;

    /**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return user_id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 获取3:phone,2:email,1:uname
     *
     * @return login_type - 3:phone,2:email,1:uname
     */
    public Byte getLoginType() {
        return loginType;
    }

    /**
     * 设置3:phone,2:email,1:uname
     *
     * @param loginType 3:phone,2:email,1:uname
     */
    public void setLoginType(Byte loginType) {
        this.loginType = loginType;
    }

    /**
     * @return openid
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * @param openid
     */
    public void setOpenid(String openid) {
        this.openid = openid;
    }

    /**
     * @return login_token
     */
    public String getLoginToken() {
        return loginToken;
    }

    /**
     * @param loginToken
     */
    public void setLoginToken(String loginToken) {
        this.loginToken = loginToken;
    }
}